package com.woniuxy.entity.broker;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.woniuxy.group.DeleteGroup;
import com.woniuxy.group.InsertGroup;
import com.woniuxy.group.UpdateGroup;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 经纪人回答咨询
 * </p>
 *
 * @author booty
 * @since 2021-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "id不能为空", groups = {DeleteGroup.class, UpdateGroup.class})
    private Integer id;

    /**
     * 咨询者id
     */
    @NotNull(message = "userid不能为空",groups = InsertGroup.class)
    private Integer userid;

    /**
     * 回答的经纪人
     */
    private Integer brokerid;

    /**
     * 回答内容
     */
    private String reply;

    /**
     * 问题
     */
    @NotNull(message = "question不能为空",groups = InsertGroup.class)
    private String question;


}
